rust get command line arguments

216

rust get command line arguments -

use std::env;

fn main() {
    let args: Vec<String> = env::args().collect();
    println!("{:?}", args);
}

Comments

Submit
0 Comments